home *** CD-ROM | disk | FTP | other *** search
- >$.!Warfarin.!ReadMe
-
- Documentation for Warfarin V1.10
- --------------------------------
-
- Installing Warfarin
- -------------------
-
- From outside the Desktop: Type the command "*!Warfarin".
- From inside the Desktop: Double-click on the !Warfarin icon (but you need
- a working mouse to do this...Catch-22 !).
-
- There are no * commands supplied: Warfarin activates as soon as it has loaded.
- The only way to remove it is *RMKill it (or hard reset/switch off). You can do
- *Help Warfarin, but it doesn't tell you anything astounding.
-
- Running Warfarin a second time whilst still running the first copy will simply
- re-define Warfarin's environmental variables and re-initialise the Warfarin
- module.
-
- What does Warfarin do ?
- -----------------------
-
- It allows the mouse pointer to be moved by using either Alt key in combination
- the cursor keys (and Insert, Home and Page Up by default) to move the mouse
- (and press the left, middle and right buttons).
-
- Why's it called Warfarin ?
- --------------------------
-
- Warfarin is a crystalline insoluble substance (C H O ) used as a rodenticide.
- 19 16 4
-
- Hence, my module is used when your mouse is dead !
-
- I should remind readers that Warfarin is the patent name owned by
- Wisconsin Alumni Research Foundation, derived from their initials and the
- compound courmarin (C H O ).
- 9 6 2
-
- How do I use it ?
- -----------------
-
- Press Alt and, whilst still holding down Alt, press one of the four
- cursor keys to move the mouse pointer. It will move smoothly at the rate
- that you've set for *Configure MouseStep. If you are using the default
- settings, then pressing Alt-Insert will act as if you've pressed the left
- mouse button. Alt-Home (middle button) and Alt-Page Up (right button) also
- simulate mouse button presses.
-
- *NEW TO V1.10*
- When Alt is held down, the normal text cursor will NO LONGER MOVE when the
- cursor keys are pressed. The mouse button behaviour, however, remains the
- same now regardless of whether Alt is depressed or not (this is a change over
- V1.00).
-
- Changing the Default keys *NEW TO V1.10*
- -------------------------
-
- There are now five variables defined in Warfarin's !Run file:
-
- Name Default value Default Key
- ---- ------------- -----------
- Warfarin$Fake1 &5F Left Alt
- Warfarin$Fake2 &60 Right Alt
- Warfarin$Left &1F Insert
- Warfarin$Middle &20 Home
- Warfarin$Right &21 Page Up
-
- These should all be defined as integers using the *SetEval (NOT *Set) command.
- The values are internal keycodes as found on Page 122 (watch out - the table's
- "low" and "high" labels are incorrectly switched) of the RISC OS PRMs.
- So, for example, if I wanted to use Shift instead of Alt as a new modifier and
- f1 to f3 for the L,M and R buttons, then the !Run lines would look like this:
-
- *SetEval Warfarin$Fake1 &4C
- *SetEval Warfarin$Fake2 &58
- *SetEval Warfarin$Left &01
- *SetEval Warfarin$Middle &02
- *SetEval Warfarin$Right &03
-
- Once you've updated the !Run file, simply re-run Warfarin (see "Installing
- Warfarin" for more details) to use the new settings.
-
- Technical Section
- -----------------
-
- Well, I had some problems getting this one to work ! I tried:
-
- 1) OS_GenerateEvent 10 to force a button pressed event...the OS ignores it.
-
- 2) Forcing nine bytes into the mouse buffer every vsync - also failed.
-
- 3) Setting the mouse position with OS_Word 21 (param 3). This worked, but
- you can't set the mouse button state with it.
-
- 4) Trapping OS_Mouse itself. This worked after I used the example in the
- manual - boy, modifying return parameters on a vector is hard work. I
- used the OS_Mouse vector to 'tweak' the mouse button states, but it's
- no good for updating the mouse position.
-
- 5) Trapping OS_ByteV or Event 2 to stop the text cursor moving - neither
- worked.
-
- 6) Finally sussed how to stop the text cursor (or Wimp caret for that matter)
- from moving - trap InsV and look for cursor keys (coded 140 to 143 decimal
- would you believe !).
-
- The Warfarin module survives a soft reset.
-
- Known Problems
- --------------
-
- * Computer Concepts' Impression package does some devious things once a menu
- has been opened - it must check the mouse button directly because the menu
- closes immediately if it was opened using Warfarin !
-
- * If a program doesn't use OS_Mouse or Wimp_GetPointerInfo (or Wimp_Poll Event
- 6 of course) to scan the mouse, then Warfarin can't fake the mouse button
- presses.
-
- Revision History
- ----------------
-
- Version 1.10 (September 1990)
- ------------
-
- * Stopped the text cursor/caret moving whilst the Alt key is held down
- simultaneously with the cursor keys.
-
- * Allow the mouse buttons to be used simultaneously with Insert/Home/Page Up
- when the Alt key is depressed (the former were disabled with V1.00).
-
- * Added five new environmental variables to allow key-mapping changes
- with a simple text edit rather than having to hack and slash and re-assemble.
-
- Version 1.00 (January 1990)
- ------------
-
- * The mouse on the A440 I use at work refused to move in a sensible fashion
- and it was like trying to play a game of 'can I get the mouse to move in
- the direction I want ?'. Since the Atari ST can move the mouse via the
- keys, I simply couldn't let a vastly inferior machine get away with a
- useful feature that the Archimedes doesn't have.
-
- Future Enhancements
- -------------------
-
- * I'll probably have a 'speedup key' to double the speed of the mouse movement
- if it has a long way to travel.
-
- A Plea From The Author
- ----------------------
-
- If you make some USEFUL changes to the source or fix any bugs, can you please
- send me those changes to the following address:
-
- Snail Mail JANET e-mail
- ---------- ------------
-
- Richard K. Lloyd, rkl@uk.ac.liv.cs.and
- 1, Banks Road,
- Lower Heswall,
- Wirral,
- Merseyside. L60 9JS
-
- P.S. The mouse on new Archimedes machines is *much* better (made by Logitech)
- than the rubbishy one originally supplied a couple of years back.
-